-- GENERATED SPELL FOR [Grizzled Brown Bear] --


function spell0_17347(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17347', 591, 1)
end

function spell1_17347(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17347', 0, 1)
end

function spell2_17347(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(50256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17347', 0, 1)
end

function spell3_17347(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(31279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17347', 543, 1)
end

function Sorts_17347(pUnit, Event)
local choix_sorts_17347 = math.random(0, 3)
if choix_sorts_17347 == 0 then
pUnit:RegisterEvent('spell0_17347', 1, 1)
end
if choix_sorts_17347 == 1 then
pUnit:RegisterEvent('spell1_17347', 1, 1)
end
if choix_sorts_17347 == 2 then
pUnit:RegisterEvent('spell2_17347', 1, 1)
end
if choix_sorts_17347 == 3 then
pUnit:RegisterEvent('spell3_17347', 1, 1)
end
end

function mob17347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17347', math.random(1500, 3000), 1)
end

function mob17347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17347, 1, 'mob17347_Action')
RegisterUnitEvent(17347, 2, 'mob17347_Leave')
RegisterUnitEvent(17347, 3, 'mob17347_Kill')
RegisterUnitEvent(17347, 4, 'mob17347_Die')
